<template>
  <div class="goods">
    <good-list-item v-for="item in goods" :key="item.acm" :goods-item="item" />
  </div>
</template>

<script>
import GoodListItem from './GoodListItem'

export default {
  name: 'GoodList',
  props: {
    goods: {
      type: Array,
      default() {
        return []
      }
    }
  },
  components: { GoodListItem }
}
</script>

<style type="text/css" scoped>
.goods {
  width: 96%;
  padding-top: 15px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
}
</style>
